package com.example.demo.controller;

import com.example.demo.entity.tags;
import com.example.demo.mapper.tagsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
public class tagsController {
    @Autowired
    tagsMapper tagsMapper;

    //查询所有博客类型
    @GetMapping("/selecttags")
    public List<tags> selecttags() {
        return tagsMapper.selecttabs();
    }
}
